package com.zdkj.subway.support.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdkj.subway.support.dto.out.OperateLogDetailDTO;
import com.zdkj.subway.support.entity.SwStOperateLog;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 票务日志表
 *
 * @author cui_com
 * @date 2020-01-08 17:21:51
 */
public interface SwStOperateLogService extends IService<SwStOperateLog> {
    /**
     * 查找详细信息
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<OperateLogDetailDTO> queryDetailByPage(
            IPage page, Wrapper queryWrapper);

    /**
     * 根据日志设置进行日志归档
     *
     * @param endDateTime
     * @return
     */
    Integer recordLogByLogSet(LocalDateTime endDateTime);

    /**
     * 根据日志ID进行日志归档
     *
     * @param listIds
     * @return
     */
    Integer recordLogByIds(List<Integer> listIds);

}
